public class test3 {
    public static void main(String[] args) {
        //二位数组静态初始化
        int[][] arr1 = new int[][]{{1, 2, 3}, {4, 5, 6}};
        int[][] arr2 = {
                {1, 2, 3, 4},
                {5, 6, 7, 8}
        };

        //遍历二维数组
        //二维数组：遍历二维数组得到里面的一维数组
        for (int i = 0; i < arr2.length; i++) {
            //得到一维数组里面的每一个元素
            for (int j = 0; j < arr2[i].length; j++) {
                System.out.print(arr2[i][j] + " ");
            }
            System.out.println();
        }
    }
}
